package org.to_zero.ssm.sdm.mapper;

import org.apache.ibatis.annotations.Param;
import org.to_zero.ssm.sdm.entity.Team;
import org.to_zero.ssm.sdm.entity.User;

import java.util.List;

public interface TeamMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Team record);

    Team selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Team record);

    List<Team> selectMap();

    List<Team> findTeamByCondition(Team team);

    int deleteByPrimaryKeys(Integer[] ids);

    int findTeamByConditionCount(Team team);

    int clearTeamMember(Integer id);

    List<User> allotTeamMember(Integer id);

    int rejectMembers(List<Integer> list);

    int insertMembers(@Param("list") List<Integer> list, @Param("teamId") Integer teamId);

}